import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import './assets/styles/custom.scss'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en' // lang i18n
import { Button } from 'element-ui';
import '@/styles/index.scss' // global css
import Cookies from 'js-cookie'
import App from './App'
import router from './router'
import store from './store'
import Pagination from "@/components/Pagination";
import '@/icons' // icon
import '@/permission' // permission control

/* Vue.use(ElementUI, { locale }) */
Vue.use(ElementUI, {
  size: Cookies.get('size') || 'medium' // set element-ui default size
})
Vue.component('Pagination', Pagination)
Vue.prototype.$ELEMENT = { size: 'mini', zIndex: 3000 };
Vue.use(Button);
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
